package com.csu.controller;

import com.csu.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class CategoryController {
    @Autowired
    private CategoryService categoryService;

//    @GetMapping("/selectAllCategory")
//    @ResponseBody
//    public List<Category> selectAllCategory() {
//        return categoryService.selectAllCategory();
//    }
//
//    @GetMapping("addCategory")
//    @ResponseBody
//    public String addCategory(String name) {
//        categoryService.addCategory(name);
//            return "success";
//    }
}
